package com.ts.content.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ts.content.dto.PostDTO;
import com.ts.content.entity.PostEntity;
import com.ts.content.vo.Post2Vo;
import com.ts.content.vo.PostTopicVo;
import com.ts.content.vo.PostVo;

import java.util.List;

/**
 * 帖子
 *
 * @author admin admin@qq.com
 * @since 1.0.0 2023-02-22
 */
public interface PostService extends IService<PostEntity> {
    public IPage getPostList(IPage<PostVo> page);


    void postSave(PostDTO postEntity);

    List<Post2Vo> getPostListByjoinTopic(Long page, Integer userId, Integer order);

    PostTopicVo getPostTopicById(Integer userId,Integer postId);
}